home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1997 #1
/
Amiga Plus CD - 1997 - No. 01.iso
/
pd
/
programmierung
/
mesa-1.2.8
/
src-tk
/
private.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-27
|
997b
|
48 lines
#ifndef PRIVATE_H
#define PRIVATE_H
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <GL/glx.h>
#if defined(__cplusplus) || defined(c_plusplus)
#define class c_class
#endif
typedef struct _WINDOW_REC {
int x, y, w, h;
GLenum type;
Window wMain, wOverlay;
XVisualInfo *vInfoMain, *vInfoOverlay;
Colormap cMapMain, cMapOverlay;
GLXContext cMain, cOverlay;
int cMapAllocated; /*** ad@lms.be: some cMapMain's better not freed ***/
} WINDOW_REC;
extern Display *xDisplay;
extern int xScreen;
extern Window wRoot;
extern WINDOW_REC w;
extern Atom deleteWindowAtom;
extern void (*ExposeFunc)(int, int);
extern void (*ReshapeFunc)(int, int);
extern void (*DisplayFunc)(void);
extern GLenum (*KeyDownFunc)(int, GLenum);
extern GLenum (*MouseDownFunc)(int, int, GLenum);
extern GLenum (*MouseUpFunc)(int, int, GLenum);
extern GLenum (*MouseMoveFunc)(int, int, GLenum);
extern void (*IdleFunc)(void);
extern GLenum drawAllowFlag;
extern int cursorNum;
#endif